package com.wyq.new_springboot.util.result;

/**
 * 响应结果码
 * @author wyq on 2021/3/28.
 */
public enum ResultCode {
    SUCCESS(200),//成功
    FAIL(400),//失败
    UNAUTHORIZED(401),//认证失败
    NOT_FOUND(404);//接口没找到
    private int code;

    ResultCode(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
